<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <%
      //版本号，后台同步渲染
      var v = "0.11";
    %>
    <script>
      var v = "<%= v%>";
    </script>
    <!--jquery-->
    <script src="/dist/lib/jquery.min.js"></script>
    <!--bootstrap-->
    <link rel='stylesheet' href='/dist/lib/plugin/bootstrap/css/bootstrap.min.css'/>
    <script src="/dist/lib/plugin/bootstrap/js/bootstrap.min.js"></script>

    <!--app全局-->
    <link rel='stylesheet' href='/dist/css/app.min.css?<%= v%>' />    
    <script src="/dist/lib/app.js"></script>
    <%
      //当前页面样式
      if(mainCss && mainCss != ""){
    %>
        <link rel='stylesheet' href='/dist/css/page/<%= mainCss %>.min.css?v=<%= v%>'/>
    <%   
      }
    %>
    <%
    //其他css
    for(var i = 0;i<css.length;i++){
    %>
    <link rel='stylesheet' href='/dist/<%= css[i] %>.css?v=<%= v%>' />
    <%
    }
    %>
    
    <%
    //其他js
    for(var i = 0;i<js.length;i++){
    %>
    <script src="/dist/<%= js[i]%>.js?v=<%= v%>"></script>
    <%
    }
    %>
    <%
    if(mainJs && mainJs != ""){
    %>
      <script src="/dist/lib/require.js" data-main="/dist/js/page/<%= mainJs %>.min.js?v=<%= v%>"></script>
    <%
    }
    %>
  </head>
  <body>
  <!--导航-->
<%- include('./nav.ejs') %>